<div class="rs_layout_top breadCrumbWrap">
	<div class="breadCrumbStart">您当前的位置是在：欢迎</div>
</div>
<div class="rs_layout_right" resizable="true" style="width:290px; float:right; margin:0 5px 0 5px;">
	<div class="right_tab_con">
		<ul>
			<li class="cur">在线用户</li>
			<li>执行中的任务</li>
		</ul>
		<div class="con_wrap" id="right_mon_panel">
			<table width="100%" cellspacing="0" cellpadding="0">
				<tr>
					<th scope="col" width="40"><label class="check_box"><input type="hidden"></label></th>
					<th scope="col">用户名</th>
					<th scope="col">登录时间</th>
				</tr>
				<#if onlineUsers??>
				<#list onlineUsers as user>
				<tr>
					<td><label class="check_box"><input type="hidden"></label></td>
				
						<td>${user.username!''}（${user.firstname!''}）</td>
					
					<td>${user.loginTime?string('yyyy-MM-dd HH:mm:ss')}</td>
				</tr>
				</#list>
				</#if>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
				</tr>
			</table>
		</div>
	</div>
</div>
<div class="rs_layout_center" style="min-width:810px;">
	<div class="con_wrap_con">
		<div class="con_wrap_border">
		<#if runtimeData??>
			<div class="con_top con_top_1">
				<i class="index_ico1"></i>
				<p><span class="font_1">您好，${runtimeData.osUser!''}</span>&nbsp;&nbsp;&nbsp;&nbsp;
				<span  id = "time"></span><br /> 
					系统启动时间：<span class="red_1">${runtimeData.starttime?string('yyyy-MM-dd HH:mm:ss')}</span>，共检索${runtimeData.searchQueryNum!''}次，平均响应时间：<span class="red_1">${runtimeData.averageResponseTime!''}s</span></p>
			</div>
			<div class="con_top con_top_2">
				<i class="index_ico2"></i><i class="index_ico3"></i>
				<p>系统处理的信息总量：0<br />系统分配内存/空闲内存： <span class="red_1">${(runtimeData.allocateMemory/1024/1024)?string('###.##')}G/${(runtimeData.remainingMemory/1024/1024)?string('###.##')}G</span></p>
			</div>
		</#if>
		</div>
		<div class="con_wrap_border">
			<div class="fast_inner">
				<dl>
					<dt>快速入口</dt>
					<dd class="cur">
						<i class="index_ico4"></i>
						<h3><a href="/${orgi}/manage/account/index.html">用户管理</a>User Manage</h3>
						<span class="right_arrow"></span>
					</dd>
					<dd>
						<i class="index_ico5"></i>
						<h3><a href="#">任务监控</a>Task Monitor</h3>
						<span class="right_arrow"></span>
					</dd>
					<dd>
						<i class="index_ico6"></i>
						<h3><a href="#">文件采集</a>File Crawl</h3>
						<span class="right_arrow"></span>
					</dd>
					<dd>
						<i class="index_ico7"></i>
						<h3><a href="#">分类管理</a>Category</h3>
						<span class="right_arrow"></span>
					</dd>
					<dd>
						<i class="index_ico8"></i>
						<h3><a href="#">索引管理</a>Index Manage</h3>
						<span class="right_arrow"></span>
					</dd>
					<dd>
						<i class="index_ico9"></i>
						<h3><a href="#">索引字段</a>Index Field</h3>
						<span class="right_arrow"></span>
					</dd>
					<dd>
						<i class="index_ico10"></i>
						<h3><a href="#">数据类型</a>Data Type</h3>
						<span class="right_arrow"></span>
					</dd>
					<dd>
						<i class="index_ico11"></i>
						<h3><a href="#">系统状态</a>System Status</h3>
						<span class="right_arrow"></span>
					</dd>
					<dd>
						<i class="index_ico12"></i>
						<h3><a href="#">参数配置</a>Configure</h3>
						<span class="right_arrow"></span>
					</dd>
					<dd>
						<i class="index_ico13"></i>
						<h3><a href="#">插件管理</a>Plugin Manage</h3>
						<span class="right_arrow"></span>
					</dd>
					<dd>
						<i class="index_ico14"></i>
						<h3><a href="#">集群状态</a>Cluster Status</h3>
						<span class="right_arrow"></span>
					</dd>
					<dd>
						<i class="index_ico15"></i>
						<h3><a href="#">企业检索</a>Search</h3>
						<span class="right_arrow"></span>
					</dd>
				</dl>
			</div>
		</div>
		<div class="con_wrap_border">
			<div class="system_detail">
				<div class="detail_title">
					<i class="index_ico16"></i>
					<h3>系统运行状态信息</h3>
					<p>此功能提供查看系统运行状态信息的界面, 例如：内存分配大小和剩余大小, CPU利用率, 磁盘储存空间剩余量, 数据检索次数, 索引总量信息等。</p>
				</div>
				<table width="100%" cellspacing="0" cellpadding="0">
					<#if runtimeData??>
					<tr>
						<td width="120"><b>分配内存</b></td>
						<td><span>${(runtimeData.allocateMemory/1024/1024)?string('###.##')}G</span></td>
						<td width="120"><b>当前用户</b></td>
						<td><span>${runtimeData.osUser!''}</span></td>
						<td width="120"><b>索引信息总量</b></td>
						<td><span>0</span></td>
					</tr>
					<tr>
						<td><b>空闲内存</b></td>
						<td><span><span class="red_1">${(runtimeData.remainingMemory/1024/1024)?string('###.##')}</span>G</span></td>
						<td><b>JAVA虚拟机</b></td>
						<td><span>${runtimeData.jvm!''}</span></td>
						<td><b>检索请求次数</b></td>
						<td><span>${runtimeData.searchQueryNum!''}</span></td>
					</tr>
					<tr>
						<td><b>已使用内存</b></td>
						<td><span>${(runtimeData.usingMemory/1024/1024)?string('###.##')}G</span></td>
						<td><b>虚拟机版本</b></td>
						<td><span>${runtimeData.jvmVersion!''}</span></td>
						<td><b>平均检索响应时间</b></td>
						<td><span>${runtimeData.averageResponseTime!''}s</span></td>
					</tr>
					<tr>
						<td><b>操作系统</b></td>
						<td><span>${runtimeData.operatingSystem!''}</span></td>
						<td><b>服务器名称</b></td>
						<td><span>${runtimeData.hostname!''}</span></td>
						<td><b>IP地址</b></td>
						<td><span>${runtimeData.ipaddr!''}</span></td>
					</tr>
					<tr>
					 	<td><b>系统启动时间</b></td>
						<td><span>${runtimeData.starttime?string('yyyy-MM-dd HH:mm:ss')}</span></td>
						<td><b>磁盘空间/剩余空间</b></td>
						<td><span>${(runtimeData.diskSpace/1024/1024)?string('###.##')}G/<span class="red_1">${(runtimeData.diskFreeSpace/1024/1024)?string('###.##')}G</span></span></td>
						<td><b>R3使用的存储空间</b></td>
						<td><span class="green_1">${(runtimeData.usedDiskSpace/1024/1024)?string('###.##')}G</span></td>
						
						<!-- <td><b>授权产品/用户</b></td>
						<td><span class="green_1">Full-Text Search/Open..</span></td>
						<td><b>数据量/节点数量</b></td>
						<td><span>50000/0</span></td> -->
					</tr>
					<tr>
						<td><b>虚拟机路径</b></td>
						<td colspan="5"  title="${runtimeData.jdkPath!''}"><span>${runtimeData.jdkPath!''}</span></td>
					</tr>
					<tr>
						<td><b>用户默认路径</b></td>
						<td colspan="5" title="${runtimeData.userPath!''}"><span>${runtimeData.userPath!''}</span></td>
					</tr>
					
				<!-- <tr class="noBorder">
						
						<td><b>授权版本/类型/服务</b></td>
						<td><span>Ultimate/Free/Server</span></td>
						<td><b>授权日期</b></td>
						<td><span>Unlimited</span></td>
					</tr>  -->
				</#if>
				</table>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function(){
	$('.right_tab_con li').click(function(){
		$(this).addClass('cur').siblings('li').removeClass('cur');
	})
	$('.con_wrap table tr').each(function(index, element) {
       $(this).find('th:last').css('border-right',0);
	   $(this).find('td:last').css('border-right',0);
    });
	$('label.check_box').click(function(){
		if($(this).hasClass('cur')){
			$(this).removeClass('cur');
		}else{
			$(this).addClass('cur');	
		}
	});
	$('.fast_inner dd').click(function(){
		$(this).addClass('cur').siblings('dd').removeClass('cur');	
	})
	$('.system_detail table tr').each(function(index, element) {
	   $(this).find('td:last').css('border-right',0);
    });
})
window.onload=window.onresize=function(){
	var winHeight = $(window).height() , winWidth = $(window).width();
	var isNotIE=-[-1,];
	if(isNotIE)
	{
		 scrollHeight = document.body.scrollHeight;//非IE浏览器
	}
	else
	{
	 	 scrollHeight = document.documentElement.scrollHeight;//IE浏览器
	}
	$('#right_mon_panel').height(scrollHeight-140);
	if(winHeight>scrollHeight){
		winHeight=winHeight;
	}else{
		winHeight=scrollHeight;
	}
	if(winHeight-440<200){
		$('.fast_inner').height(200);		
	}else{
		$('.fast_inner').height(winHeight-440);	
	}
}

document.getElementById('time').innerHTML=new Date().toLocaleString();     
setInterval("document.getElementById('time').innerHTML=new Date().toLocaleString();",1000);  


</script>